package com.ywwxhz.model;

import java.util.ArrayList;
import java.util.List;

public class Category {
    private String Type;
    private List<AppInfo> apps;

    public Category(String Type) {
        this.Type = Type;
        apps = new ArrayList<AppInfo>();
    }

    public void add(AppInfo appInfo) {
        apps.add(appInfo);
    }

    public void remove(int pos) {
        apps.remove(pos);
    }


    public AppInfo getAppInfo(int pos) {
        return apps.get(pos);
    }

    public int getSize() {
        return apps.size();
    }

    public void clear() {
        apps.clear();
    }

    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public List<AppInfo> getApps() {
        return apps;
    }
}
